#!/bin/bash
# Copyright 2025 The Lynx Authors. All rights reserved.
# Licensed under the Apache License Version 2.0 that can be found in the
# LICENSE file in the root directory of this source tree.

set -e

current_dir=$(cd "$(dirname "$0")"; pwd)
root_path=$(cd "$(dirname $(dirname $(dirname $(dirname "$current_dir"))))"; pwd)
src_path="$current_dir/notification_cancel.png"
android_target_path="$root_path/platform/android/lynx_devtool/src/main/res/drawable"
ios_target_path="$root_path/platform/darwin/ios/lynx_devtool/assets"

function copy() {
    pushd "$root_path"
    
    mkdir -p "$android_target_path"
    mkdir -p "$ios_target_path"

    cp "$src_path" "$android_target_path/"
    cp "$src_path" "$ios_target_path/"
}

copy